<%@ page import="java.util.List" %>
<%@ page import="cn.edu.lingnan.pojo.Student" %><%--
  Created by IntelliJ IDEA.
  User: 白金黑曜
  Date: 2024/4/23
  Time: 10:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>美化表单</title>
    <style>
        /* 表格样式 */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        th, td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #077cbb;
        }
        th {
            background-color: #077cbb;
        }
        /* 居中标题 */
        h1 {
            text-align: center;
        }
    </style>
</head>
<body>
<h1 align="center">管理员界面</h1>
<table>
    <tr>
        <td>学生编号</td>
        <td>学生姓名</td>
        <td>学生密码</td>
        <td>学生权限</td>
        <td>备注</td>
    </tr>
    <%
        List<Student> allStu=(List<Student>)session.getAttribute("allStu");
        for (Student student : allStu) {
    %>
    <tr>
        <td><%=student.getSid()%></td>
        <td><%=student.getSname()%></td>
        <td><%=student.getSpassword()%></td>
        <td><%=student.getSright()%></td>
        <td><%=student.getSflag()%></td>
    </tr>
    <%
        }
    %>

</table>
</body>
</html>
